package com.rt.gptnext.common.constant;

/**
 * http常量
 *
 * @author gaoyiyang
 **/
public interface HttpConstants {

    String GET = "GET";

    String POST = "POST";

    String PUT = "PUT";

    String DELETE = "DELETE";

    String CONTENT_TYPE = "Content-Type";

    /** Oauth2授权token请求头 */
    String OAUTH2_AUTHORIZATION_HEADER = "Authorization";

    /** Oauth2授权token请求头值前缀 */
    String OAUTH2_AUTHORIZATION_BEARER = "Bearer ";

    /** http协议 */
    String HTTP_PROTOCOL = "http://";

    /** https协议 */
    String HTTPS_PROTOCOL = "https://";

    interface MimeTypes {
        String HTML = "text/html";
        String XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
        /** xls的mime-type */
        String XLS = "application/vnd.ms-excel";
        /** doc的mime-type */
        String DOC = "application/msword";
        /** docx的mime-type */
        String DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
        /** zip的mime-type */
        String ZIP = "application/x-zip-compressed";
        /** pdf的mime-type */
        String PDF = "application/pdf";
        /** json的mime-type */
        String JSON = "application/json";
        /** json-utf8的mime-type */
        String JSON_UTF8 = "application/json;charset=utf-8";
        /** xml的mime-type */
        String XML = "application/xml";
        /** 二进制文件的mime-type */
        String BYTES = "application/octet-stream";
        /** 图片mime-type */
        String JPEG = "image/jpeg";
        String PNG = "image/png";
        String GIF = "image/gif";
        String WEBP = "image/webp";
        String SVG = "image/svg+xml";
        String ICO = "image/x-icon";
        String BMP = "image/bmp";
        String TIFF = "image/tiff";
        String ICON = "image/vnd.microsoft.icon";
        String WBMP = "image/vnd.wap.wbmp";
        String AVIF = "image/avif";
        String HEIC = "image/heic";
        String HEIF = "image/heif";
        String JXR = "image/jxr";
        String JP2 = "image/jp2";
    }

}
